$渐变: linear-gradient(160deg, rgba(100, 200, 255, 1) 0%, rgba(120, 100, 255, 1) 100%);
$阴影: 0 0 6px 0
    rgba(
        $color: #666,
        $alpha: 0.2,

    );

body {
    margin: 0;
    color: #333;
    position: relative;
    z-index: 1;
}

.fixed {
    position: fixed;
    width: 100%;
    height: 100%;
}

html,
body,
.fixed {
    min-width: 20rem;
}

a {
    color: inherit;
    text-decoration: none;
}

input,
button,
textarea,
select {
    outline: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background-color: transparent;
    color: inherit;
}

em,
i {
    text-decoration: none;
    font-style: normal;
}

div,
header,
main,
footer,
ul,
li,
nav,
p {
    box-sizing: border-box;
}

.ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: keep-all;
}

ul,
li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

a,
div {
    & > img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }
}

p {
    margin: 0;
}

button {
    cursor: pointer;
    transition: background-color 0.2s;
}

.linear {
    background-image: $渐变;
}

.home-icon-a {
    .home-icon-img {
        height: calc(100% - 0.4rem);
        margin: 0.2rem;
        display: block;
    }
}

.anchor {
    position: relative;
    top: -3rem;
    height: 0;
}

svg {
    user-select: none;
}

#bgimg {
    background-size: 100%;
    background-position: center;
    z-index: 0;
    background-image: url('../upload/efff11656ba58d65b458d5924e8e7d83.jpeg');
}

.www {
    width: 100rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.backColor {
    transition: background-color 0.2s;
    background-color: rgba($color: #fff, $alpha: 0.8);
}

.backColor1 {
    transition: background-color 0.2s;
    background-color: rgba($color: #fff, $alpha: 1);
}

.unit {
    box-shadow: $阴影;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    border-radius: 0.25rem;
}
// 幕布容器
#curtain-box {
    top: 0;
    left: 0;
    z-index: 0;
    & > div {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

footer {
    position: relative;
    z-index: 1;
    padding: 0.5rem;
    font-size: 12px;
    background-color: rgba($color: #333, $alpha: 0.8);
    backdrop-filter: blur(0.25rem);
    color: #efefef;
    text-align: center;
    em::after {
        content: "";
        display: inline-block;
        width: 0.5rem;
    }
    a {
        &:hover {
            text-decoration: underline;
        }
    }
}

iframe {
    border: none;
}

main {
    padding-top: 1rem;
    min-height: calc(100vh - 3rem);
}
// 字体图标
[class^="icon-"],
[class*=" icon-"] {
    font-family: flycranfont !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    color: inherit;
}
$inputshadow: 0 0 0.125em #66666699;
// 表单
input[type="radio"],
input[type="checkbox"] {
    font-size: inherit;
    vertical-align: top;
    margin: 0.1875em;
    width: 1em;
    height: 1em;
    box-shadow: $inputshadow;
}
input[type="checkbox"].switch {
    margin: 0.25em 0.25em;
    appearance: none;
    width: 2em;
    height: 0.875em;
    position: relative;
    background-color: #e0e0e0;
    border-radius: 0.5em;
    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 0.875em;
        height: 0.875em;
        transform: scale(1.4);
        transform-origin: center;
        border-radius: 0.4375em;
        background-color: #767676;
        transition: transform 0.1s;
    }
    &::before {
        content: "";
        display: block;
        width: 50%;
        height: 100%;
        border-radius: 0.5em;
        background-color: #909090;
        transition: width 0.1s;
    }
    &:hover {
        &::after {
            background-color: #616161;
        }
    }
    &:checked {
        &::after {
            transform: scale(1.4) translate(1em);
        }
        &::before {
            width: 100%;
        }
    }
}
input[type="range"] {
    appearance: none;
    font-size: inherit;
    width: 10em;
    height: 0.5em;
    border-radius: 0.25em;
    margin: 0.4375em;
    vertical-align: middle;
    background-color: #e0e0e0;
    box-shadow: $inputshadow;
    &:hover::-webkit-slider-thumb {
        background-color: #616161;
    }
}
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 0.5em;
    height: 0.5em;
    transform: scale(2);
    background-color: #767676;
    border-radius: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 0.5em;
    width: 100%;
    border-radius: 0.25em;
    background-color: transparent;
}
.color-board {
    cursor: pointer;
    background-image: url("../img/svg_透明背景板.svg");
    background-size: 100%;
    margin: 0.125em;
    display: inline-block;
    width: 1.125em;
    height: 1.125em;
    border-radius: 0.25em;
    vertical-align: top;
    position: relative;
    &::before {
        content: "";
        border-radius: 0.25em;
        display: block;
        width: 100%;
        height: 100%;
        background-color: inherit;
    }
    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        display: inline-block;
        width: 100%;
        height: 100%;
        border-radius: 0.25em;
        border: #999 1px solid;
        box-sizing: border-box;
    }
}
details {
    &[open] {
        summary::before {
            transform: rotate(90deg);
        }
    }
    summary {
        font-weight: bold;
        padding: 0.5rem;
        background-color: rgba($color: #999, $alpha: 0.3);
        user-select: none;
        cursor: pointer;
        display: block;
        &::before {
            content: "\e600";
            display: inline-block;
            transition: transform 0.2s;
            font-family: flycranfont !important;
            color: rgba($color: #999, $alpha: 0.6);
            margin-right: 0.25rem;
        }
    }
    p {
        position: relative;
        line-height: 1.375em;
        &::before {
            content: "";
            position: absolute;
            display: block;
            top: 0;
            left: 0;
            width: 0.25rem;
            height: 100%;
            background-image: rgba($color: #999, $alpha: 0.3);
        }
        .sep {
            display: inline-block;
            width: 1rem;
        }
    }
}
@media (max-width: 102rem) {
    .www {
        width: 74rem;
    }
}
@media (max-width: 76rem) {
    .www {
        width: 48rem;
    }
}
@media (max-width: 50rem) {
    .www {
        width: 100%;
        display: block;
    }
}

@media (max-width: 30rem) {
    main {
        padding-left: 0;
        padding-right: 0;
    }
}
::selection {
    color: #ffffff;
    background-color: #777;
    text-shadow: none;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

// ::-webkit-scrollbar-thumb {
//     background-color: #aaa;
//     border-radius: 0.2rem;
// }

// ::-webkit-scrollbar-track {
//     background-color: transparent;
// }

// ::-webkit-scrollbar-track-piece {
//     background-color: transparent;
// }
